<nav class="sidebar-main" xmlns:th="http://www.thymeleaf.org" th:fragment="leftMenu">
    <ul class="nav nav-drawer">
        <li class="nav-item active">
            <a href="#">
                <i class="mdi mdi-bell"></i> 我的代办
            </a>
        </li>
        <li class="nav-item active">
            <a href="#">
                <i class="mdi mdi-import"></i> 我发起的
            </a>
        </li>
        <li class="nav-item active">
            <a href="#">
                <i class="mdi mdi-file-check"></i> 我处理的
            </a>
        </li>
        <li class="nav-item active">
            <a href="#">
                <i class="mdi mdi-telegram"></i> 抄送我的
            </a>
        </li>
        <li class="nav-item active">
            <div class="input-with-icon">
                <input type="text"
                       class="btn btn-secondary btn-round btn-secondary btn-sm btn-primary btn-w-xl btn-primary">
                <a class="mdi mdi-magnify icon"></a>
            </div>

            <i class="mdi mdi-plus-box-outline mdi-24px"></i>

        </li>
        <li class="nav-item active"><a href="main.html"><i class="mdi mdi-home mdi-24px"
                                                           style="color:deepskyblue; top: 5px;"></i> 后台首页</a></li>
            <!--遍历一级菜单-->
        <li th:each="userTopMenu:${session.topMenus}" class="nav-item nav-item-has-subnav">
            <a href="javascript: ;"><i th:class="'mdi '+${userTopMenu.icon}"></i>[[${userTopMenu.menuName}]]</a>
            <ul class="nav nav-subnav">
                <!--二级菜单遍历-->
                <li th:each="userSecondMenu:${session.secondMenus}"
                    th:if="${userSecondMenu.parentId == userTopMenu.menuId}"
                    class="second-menu">
                    <a th:href="${userSecondMenu.url}">
                        <i th:class="'mdi '+${userSecondMenu.icon}">[[${userSecondMenu.menuName}]]</i>
                    </a>
                </li>
            </ul>
        </li>
    </ul>
</nav>

